package com.example.login.api

import com.example.common.api.BaseApiServer
import com.example.common.entity.CommendEntity
import com.example.home.entity.RecommendVideoEntity
import com.example.main.ui.home.entity.SimpleTypeEntity
import com.example.main.ui.home.entity.Base
import com.example.main.ui.home.entity.SimpleVideoEntity
import retrofit2.http.GET
import retrofit2.http.Query

interface SimpleApiServer:BaseApiServer {
    @GET("/videotype/getSimpleType")
    suspend fun  typeToServer() : Base<List<SimpleTypeEntity>>
    @GET("/videosimple/getSimpleVideoByChannelId")
    suspend fun  videoToServer(@Query("channelId")id:String,@Query("page")page:Int,@Query("pagesize")size:Int)
    : Base<List<SimpleVideoEntity>>

    //获取推荐视频列表
    @GET("/videosimple/getRecommendSimpleVideo")
    suspend fun recommendToServer(@Query("page") page: Int, @Query("pagesize") pageSize:Int): Base<List<RecommendVideoEntity>>

    //获取视频评论列表
    @GET("/comment/getCommentByUserId")
    suspend fun commendsToServer(@Query("datatype") dataType: Int, @Query("itemid") itemId:String): Base<List<CommendEntity>>

}